file(GLOB_RECURSE HEARD ./*.h)
file(GLOB_RECURSE SOURCE ./*.cpp)

SET(PROJNAME "CTPTrade")

include_directories(../TradeBase ../Base ../StrategyBase ${CTPVerLibDir})

source_group("Header Files" FILES ${HEARD} ${OTHER_INCLUDE})
source_group("Source Files" FILES ${SOURCE} ${OTHER_SRC})


#共享DLL中使用 MFC  
#ADD_DEFINITIONS(-D_AFXDLL)  
#SET(CMAKE_MFC_FLAG 2) #设置CMAKE_MFC_FLAG为2,0表示使用标准的MFC，1表示静态MFC,2表示共享  
add_executable(${PROJNAME} ${HEARD} ${OTHER_INCLUDE} ${SOURCE} ${OTHER_SRC})
TARGET_LINK_LIBRARIES(${PROJNAME} thosttraderapi_se StrategyBase BaseTool TradeBase Qt5::Core)
SET_TARGET_PROPERTIES (${PROJNAME} PROPERTIES OUTPUT_NAME "${PROJNAME}${PRO_VECTION}")